<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>
    <link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/css/admin.css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span>网站更新</strong></div>
    <div class="body-content">
        <input type="button" id="button" onclick="sub()" value="首页静态化">
        <input type="button" id="button1" onclick="sub1()" value="列表页静态化">
        <script>
            function sub() {
                $.ajax({
                    type: "get",
                    url:'__CONTROLLER__/setindexhtml',
                    success: function (data) {
                        if (data.status == 1) {
                            alert("更新成功")
                            window.location.reload();
                        }
                    },
                    error: function () {
                    }
                })
            }
            function sub1() {
                $.ajax({
                    type: "get",
                    url:'__CONTROLLER__/sethtml',
                    success: function (data) {
                        if (data.status == 1) {
                            alert("更新成功")
                            window.location.reload();
                        }
                    },
                    error: function () {
                    }
                })
            }
        </script>
    </div>
</div>
</body></html>